package dreampack.dataType;

import java.sql.*;
import dreampack.*;
//import dreampack.dataQuery.*;

public class GenearchData {
	private int childId;
	private String mobileTel;
	private String homeTel;
	private String officeTel;
	private String corporation;
	private String metier;
	private String comment;
	
	public GenearchData() { }
	
	public boolean init(DreamDB dreamDb, ResultSet rs) throws Exception {
		boolean bRet = true;
		
		this.childId = (int)rs.getInt("child_id");
		this.mobileTel = (String)rs.getString("mobile_tel");
		this.homeTel = (String)rs.getString("home_tel");
		this.officeTel = (String)rs.getString("office_tel");
		this.corporation = (String)rs.getString("corporation");
		this.metier = (String)rs.getString("metier");
		this.comment = (String)rs.getString("extend");
		
		return bRet;
	}
	public int getChild(){
		return this.childId;
	}
	public String getMobileTel(){
		return this.mobileTel;
	}
	public String getHomeTel(){
		return this.homeTel;
	}
	public String getOfficeTel(){
		return this.officeTel;
	}
	public String getCorporation(){
		return this.corporation;
	}
	public String getMetier(){
		return this.metier;
	}
	public String getComment(){
		return this.comment;
	}
}
